<template>
  <div class="layout-container-root full-container flex-column">
    <div class="header-container flex-row">
      <div class="list-page-header">
        <!--列表组件title前图标-->
        <img class="list-page-header-title-ico" src="@/assets/images/business/public/main-public-title-ico.png">
        <!--列表组件title容器-->
        <span>{{ title }}</span>
        <!--列表组件title下方蓝色横线-->
        <img class="list-page-header-title-line" src="@/assets/images/business/public/main-public-title-line.png">
        <!--列表组件title下方橙色横线-->
        <img class="list-page-header-title-orange-line" src="@/assets/images/business/public/orange-line.png">

        <div class="title-slot">
          <slot name="title"></slot>
        </div>

        <div class="bt-container flex-row">
          <slot name="bt"></slot>
        </div>
      </div>

    </div>
    <div class="body-container">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped lang="scss">
@import "@/assets/styles/businessTheme.scss";

.layout-container-root {
  .header-container {
    height: 12%;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 10px 0;

    .list-page-header, .bt-container {
      height: 100%;
      box-sizing: border-box;
    }

    .list-page-header {
      position: relative;
      width: 100%;

      .title-slot{
        margin-left: 50px;
      }
    }

    .bt-container {
      position: absolute;
      right: 0;
      width: 40%;
      justify-content: flex-end;
    }
  }

  .body-container {
    height: 93%;
    width: 100%;
    overflow: hidden;
  }
}
</style>
